//
//  LFLivePreview.h
//  YMDemo
//
//  Created by admin on 2022/2/25.
//

/*
 直播端直播UIView
 */
#import <UIKit/UIKit.h>

@class YMLiveSession;
@interface YMLivePreview : UIView
@property (nonatomic, strong, readonly) YMLiveSession *session;
@property (nonatomic, copy)void(^navPopBlock)(void);
@property (nonatomic,strong) NSString *liveUrl;

- (instancetype)initWithSession:(YMLiveSession *)session;

/**
 开始推流
 */
-(void)startStreaming;

/**
 结束推流
 */
-(void)stopStreaming;

/**
 开启美白
 */
-(void)setSkinBlur;

/**
 取消美白
 */
-(void)cancelFilter;

/**
 切换摄像头
 */
-(void)swapCamera;

/**
 销毁
 */
-(void)destory;


/**
 刷新视图
 */
-(void)refreshLiveView;

@end
